Skip to content

Conversation

@Jolanrensen
Copy link
Collaborator

Fixes #659 2nd attempt. (see first attempt here)

After discussing with @koperagen, this time I did it the other way around; keeping the names 'name' and 'value' instead of 'key' and 'value'.

Deprecated KeyValueProperty in favor of NameValueProperty. Made NameValuePair inherit NameValueProperty, bringing them closer together.

@Allex-Nik same question as for the first attempt :)

@Jolanrensen Jolanrensen added this to the 1.0.0-Beta4 milestone Nov 4, 2025
@Jolanrensen Jolanrensen added the enhancement New feature or request label Nov 4, 2025
// region Deprecated

/** A [DataSchema] interface / class can implement this if it represents a map-like data schema (so key: value). */
@Deprecated(KEY_VALUE_PROPERTY, ReplaceWith("NameValueProperty<T>"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is it working as expected? Never tried replace with + generics

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image image yep :)

@Allex-Nik
Copy link
Collaborator

@Allex-Nik same question as for the first attempt :)

These changes should not cause any issues with the IDEA plugin. NameValuePair with the same names of fields is still there, and AnyRow.namedValues() still returns List<NameValuePair<Any?>>, so the plugin has access to the fields it refers to.

I checked locally how rendering of NameValuePair in the plugin works with these changes - it works fine :)

@Jolanrensen Jolanrensen changed the title 'NameValueProperty' NameValueProperty Nov 5, 2025
…aluePair inherit NameValueProperty, bringing them closer together
Copy link
Collaborator

@AndreiKingsley AndreiKingsley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge KeyValueProperty and NameValuePair

5 participants